from apps.app_tx_meeting.managers import tx_meeting_configs

from apps.app_tx_meeting.tx_clients.client import TxMeetingClient


def build_tx_meeting_client() -> TxMeetingClient:
    return TxMeetingClient(
            app_id=tx_meeting_configs.get(tx_meeting_configs.ConfigName.TX_APP_ID.value),
            sdk_id=tx_meeting_configs.get(tx_meeting_configs.ConfigName.TX_SDK_ID.value),
            secret_id=tx_meeting_configs.get(tx_meeting_configs.ConfigName.TX_SECRET_ID.value),
            secret_key=tx_meeting_configs.get(tx_meeting_configs.ConfigName.TX_SECRET_KEY.value),
            operator_id=tx_meeting_configs.get(tx_meeting_configs.ConfigName.TX_OPERATOR_ID.value),
            operator_id_type=1
        )
